package com.andaily.springoauth.service.dto;

/**
 *
 * 封装accessToken数据
 */
public class AccessTokenDto extends AbstractOauthDto {

	private static final long	serialVersionUID	= 6933993017288255110L;
	private String				accessToken;
	private String				tokenType;
	private String				refreshToken;
	private String				scope;

	private int					expiresIn;

	public AccessTokenDto() {
	}

	public int getExpiresIn() {
		return expiresIn;
	}

	public void setExpiresIn(int expiresIn) {
		this.expiresIn = expiresIn;
	}

	public String getAccessToken() {
		return accessToken;
	}

	public void setAccessToken(String accessToken) {
		this.accessToken = accessToken;
	}

	public String getTokenType() {
		return tokenType;
	}

	public void setTokenType(String tokenType) {
		this.tokenType = tokenType;
	}

	public String getRefreshToken() {
		return refreshToken;
	}

	public void setRefreshToken(String refreshToken) {
		this.refreshToken = refreshToken;
	}

	public String getScope() {
		return scope;
	}

	public void setScope(String scope) {
		this.scope = scope;
	}

	@Override
	public String toString() {
		final StringBuilder sb = new StringBuilder();
		sb.append("{accessToken='").append(accessToken).append('\'');
		sb.append(", tokenType='").append(tokenType).append('\'');
		sb.append(", refreshToken='").append(refreshToken).append('\'');
		sb.append(", scope='").append(scope).append('\'');
		sb.append(", expiresIn=").append(expiresIn);
		sb.append(", errorDescription='").append(errorDescription).append('\'');
		sb.append(", error='").append(error).append('\'');
		sb.append('}');
		return sb.toString();
	}
}
